package com.example.model;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ReponseResult {
    private String shipName;//船名
    private Integer deckWidth;//甲板长度
    private Integer deckLength;//甲板宽度
    private List<CargoPlanItem> cargoPlan; //货物计划
    private Integer totalCargoWeight; //总共重量
    private Integer stowage; // 配载率
    private String message; // 消息

    // --- 子类：CargoPlanItem ---
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class CargoPlanItem {
        private String cargoName; //货物名称
        private String cargoCode; //货物编码
        private int cargoWeight; //重量
        private int cargoWidth;//货物宽度
        private int cargoLength;//货物长度
        private String cargoColor;//货物颜色
        private Position position;//货物位置

    }

    // --- 子类：Position ---
    @Data
    @NoArgsConstructor
    public static class Position {
        private int x; // x坐标
        private int y;// y坐标
        private int z;// z坐标


    }
}
